package com.iraeta.dao;

import com.iraeta.entity.Gongyi;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GongyiDao {
    int insert(Gongyi record);
    int updateByPrimaryKey(Gongyi record);
    int deleteByPrimaryKey(Integer id);
    Gongyi selectByPrimaryKey(Integer id);
    List<Gongyi> selectAll();
    List<Gongyi> selectByName(@Param("gongyitype") String gongyitype, @Param("name") String name);

    //<!-- 关联相关代码 -->
    List<Gongyi> listCaiZhiGongyi(@Param("gongyitype") String gongyitype, @Param("caizhiid") Integer caizhiid);
}